package com.ruoyi.myplayer.service.impl;

import com.ruoyi.myplayer.domain.PlayerPlaylistItem;
import com.ruoyi.myplayer.mapper.PlayerPlaylistItemMapper;
import com.ruoyi.myplayer.service.IPlayerPlaylistItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 歌单列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
@Service
public class PlayerPlaylistItemServiceImpl implements IPlayerPlaylistItemService
{
    @Autowired
    private PlayerPlaylistItemMapper playerPlaylistItemMapper;

    /**
     * 查询歌单列表
     * 
     * @param id 歌单列表主键
     * @return 歌单列表
     */
    @Override
    public PlayerPlaylistItem selectPlayerPlaylistItemById(Long id)
    {
        return playerPlaylistItemMapper.selectPlayerPlaylistItemById(id);
    }

    /**
     * 查询歌单列表列表
     * 
     * @param playerPlaylistItem 歌单列表
     * @return 歌单列表
     */
    @Override
    public List<PlayerPlaylistItem> selectPlayerPlaylistItemList(PlayerPlaylistItem playerPlaylistItem)
    {
        return playerPlaylistItemMapper.selectPlayerPlaylistItemList(playerPlaylistItem);
    }

    /**
     * 新增歌单列表
     * 
     * @param playerPlaylistItem 歌单列表
     * @return 结果
     */
    @Override
    public int insertPlayerPlaylistItem(PlayerPlaylistItem playerPlaylistItem)
    {
        return playerPlaylistItemMapper.insertPlayerPlaylistItem(playerPlaylistItem);
    }

    /**
     * 修改歌单列表
     * 
     * @param playerPlaylistItem 歌单列表
     * @return 结果
     */
    @Override
    public int updatePlayerPlaylistItem(PlayerPlaylistItem playerPlaylistItem)
    {
        return playerPlaylistItemMapper.updatePlayerPlaylistItem(playerPlaylistItem);
    }

    /**
     * 批量删除歌单列表
     * 
     * @param ids 需要删除的歌单列表主键
     * @return 结果
     */
    @Override
    public int deletePlayerPlaylistItemByIds(Long[] ids)
    {
        return playerPlaylistItemMapper.deletePlayerPlaylistItemByIds(ids);
    }

    /**
     * 删除歌单列表信息
     * 
     * @param id 歌单列表主键
     * @return 结果
     */
    @Override
    public int deletePlayerPlaylistItemById(Long id)
    {
        return playerPlaylistItemMapper.deletePlayerPlaylistItemById(id);
    }
}
